package hk.cic.cwrs.driver;

/**
 * Created by raymondsung on 25/6/2015.
 */
public class CICdevice {
// 0 - 9600
// 1 - 19200
// 2 - 38400
// 3 - 57600
// 4 - 115200

    public static final int BAUD_9600 = 0;
    public static final int BAUD_19200 = 1;
    public static final int BAUD_38400 = 2;
    public static final int BAUD_57600 = 3;
    public static final int BAUD_115200 = 4;

    public static native String SendWiegand(String s);

    public static native int OpenRS232(int i);

    public static native int CloseRS232();

    public static native int SendRS232(byte[] array, int n);

    public static native int ReceiveRS232(byte[] array);

}
